package com.ruoyi.system.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.system.mapper.LogisticsInfoMapper;
import com.ruoyi.system.domain.LogisticsInfo;
import com.ruoyi.system.service.ILogisticsInfoService;

/**
 * 物流信息Service业务层处理
 * 
 * @author ruoyi
 * @date 2024-06-16
 */
@Service
public class LogisticsInfoServiceImpl implements ILogisticsInfoService 
{
    @Autowired
    private LogisticsInfoMapper logisticsInfoMapper;

    /**
     * 查询物流信息
     * 
     * @param id 物流信息主键
     * @return 物流信息
     */
    @Override
    public LogisticsInfo selectLogisticsInfoById(Long id)
    {
        return logisticsInfoMapper.selectLogisticsInfoById(id);
    }

    /**
     * 查询物流信息列表
     * 
     * @param logisticsInfo 物流信息
     * @return 物流信息
     */
    @Override
    public List<LogisticsInfo> selectLogisticsInfoList(LogisticsInfo logisticsInfo)
    {
        return logisticsInfoMapper.selectLogisticsInfoList(logisticsInfo);
    }

    /**
     * 新增物流信息
     * 
     * @param logisticsInfo 物流信息
     * @return 结果
     */
    @Override
    public int insertLogisticsInfo(LogisticsInfo logisticsInfo)
    {
        return logisticsInfoMapper.insertLogisticsInfo(logisticsInfo);
    }

    /**
     * 修改物流信息
     * 
     * @param logisticsInfo 物流信息
     * @return 结果
     */
    @Override
    public int updateLogisticsInfo(LogisticsInfo logisticsInfo)
    {
        return logisticsInfoMapper.updateLogisticsInfo(logisticsInfo);
    }

    /**
     * 批量删除物流信息
     * 
     * @param ids 需要删除的物流信息主键
     * @return 结果
     */
    @Override
    public int deleteLogisticsInfoByIds(Long[] ids)
    {
        return logisticsInfoMapper.deleteLogisticsInfoByIds(ids);
    }

    /**
     * 删除物流信息信息
     * 
     * @param id 物流信息主键
     * @return 结果
     */
    @Override
    public int deleteLogisticsInfoById(Long id)
    {
        return logisticsInfoMapper.deleteLogisticsInfoById(id);
    }
}
